package com.zg.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/aa")
public class IndexController {
	
	@RequestMapping("/")
	public String indexRequest(HttpSession session, HttpServletRequest request, Model model){
		String name = session.getAttribute("name");
		System.out.println("Hello");
		return "index";
	}

}
